<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: index.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>

<ul>
  <?php $cat = $this->subject->getCategory(); ?>
  <?php if ($cat): ?>
  <li>
    <?php echo $this->translate('Category: ') ?>
    <?php echo $this->htmlLink($this->url(array('controller' => $this->subject->type, 'category' => $this->subject->category_id, 'action' => 'index'), 'vote_general'), $cat); ?>
  </li>
  <?php endif; ?>
  <li>
    <?php echo $this->translate('Start Time: '); ?>
    <?php echo $this->timestamp($this->subject()->starttime); ?>
  </li>
  <li>
    <?php echo $this->translate('Finish Time: '); ?>
    <?php echo $this->timestamp($this->subject()->endtime); ?>
  </li>
  <?php if ($this->subject()->view_count): ?>
  <li>
    <?php echo $this->translate('Views:') ?>
    <?php echo $this->translate(array('%s view', '%s views', $this->subject()->view_count),$this->locale()->toNumber($this->subject()->view_count)) ?>
  </li>
  <?php endif; ?>
  <?php if ($this->subject()->participant_count): ?>
  <li>
    <?php echo $this->translate('Participants:') ?>
    <?php echo $this->translate(array('%s participant', '%s participants', $this->subject()->participant_count),$this->locale()->toNumber($this->subject()->participant_count)) ?>
  </li>
  <?php endif; ?>
  <li>
    <?php echo $this->translate('Last Update:'); ?>
    <?php echo $this->timestamp($this->subject()->modified_date); ?>
  </li>
  <?php $likeCount = $this->subject()->likes()->getLikeCount(); if ($likeCount): ?>
	<li>
		<?php echo $this->translate('Likes:'); ?>
    <?php echo $this->translate(array('%s like', '%s likes', $likeCount), $likeCount); ?>
  </li>
  <?php endif; ?>
  <?php if ($this->subject()->comment_count): ?>
  <li>
		<?php echo $this->translate('Comments:'); ?>
    <?php echo $this->translate(array('%s comment', '%s comments', $this->subject()->comment_count), $this->subject()->comment_count); ?>
  </li>
  <?php endif; ?>
	<li>
		<?php echo $this->translate('Owner(Creator):'); ?>
    <?php echo $this->htmlLink($this->subject()->getOwner()->getHref(), $this->subject()->getOwner()->getTitle(), array('class' => 'kow-tip-element', 'id' => rand(0, 1000).'-'.$this->subject()->getOwner()->getGuid())); ?>
  </li>
</ul>